# note, this Makefile works for cuda.acad.cis.udel.edu
#  no guarantees that it works for any other opencl system
CXX = c++
CXX_FLAGS = -I/software/cuda-sdk/OpenCL/common/inc -lrt -lOpenCL
SRUNX = /software/slurm/bin/srun -N1 --gres=gpu:1

all:
	c++ -I/software/cuda-sdk/OpenCL/common/inc -I. parallelImageProcessor.cpp -lrt -lOpenCL libfreeimage.a -o imageProcParallel
	c++ -I/software/cuda-sdk/OpenCL/common/inc -I. sequentialImageProcessor.cpp -lrt -lOpenCL libfreeimage.a -o imageProcSeq
run:
	/software/slurm/bin/srun -N1 --gres=gpu:1 imageProcParallel 256 2
	/software/slurm/bin/srun -N1 --gres=gpu:1 imageProcSeq 256 2
clean:
	rm -f *.o imageProc* outputImages/*.tif



